import { App } from 'vue'
import hasRoles from './permission/hasRoles'
import hasPermi from './permission/hasPermi'
import { hasPermiFunction } from './permission/hasPermi'
import vMove from './move'
import vScale from './scale'

export default {
  install(app: App) {
    app.config.globalProperties.hasPermi = hasPermiFunction
    app.directive('hasRoles', hasRoles)
    app.directive('hasPermi', hasPermi)
    app.directive('move', vMove)
    app.directive("scale", vScale)
  }
}